package com.wing.cabinet.model.response;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import com.wing.cabinet.model.entity.CellInventoryInoutDetail;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 售刀柜上货(上货主表无展示)/领取明细VO
 *
 * @author
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
public class CellInventoryInoutDetailVO {

    /**
     * ID
     */
    private Long id;

    /**
     * 创建时间
     */
    @JsonFormat(timezone = "GMT+8" , pattern = "yyyy-MM-dd HH:mm:ss" )
    private LocalDateTime createTime;

    /**
     * 创建者
     */
    private Long creator;

    /**
     * 修改者
     */
    private Long modifier;

    /**
     * 创建人
     */
    private String creatorName;

    /**
     * 修改人
     */
    private String modifierName;

    private String   remark;

    /**
     * 上货/领取id
     */
    private Long inoutId;

    /**
     * 柜子id
     */
    private Long cabId;

    /**
     * sku id
     */
    private Long skuId;



    /**
     * 企业id
     */
    private Long companyId;

    /**
     * 货道id
     */
    private Long spaceId;

    /**
     * 操作类型
     */
    private CellInventoryInoutDetail.Type type;

    /**
    * 操作类型描述
    */
    @TableField(exist = false)
    private String typeDesc;

    public String getTypeDesc() {
        return type.getDesc();
    }

    /**
     * sku code
     */
    private String skuCode;

    /**
     * 刀柜编码
     */
    private String cabCode;


    /**
     * 货道
     */
    private String spaceCode;

    /**
     * 当前库存
     */
    private Integer quantityCurrent;

    /**
     * 变动后库存
     */
    private Integer quantityAfter;

    /**
     * 产品sku名称
     */
    private String skuName;


    /**
     * 产品规格
     */
    private String skuSpec;



    /**
     * sku 图片
     */
    private String skuPic;

    /**
     * 产品名称
     */
    private String productName;

    /**
     * 产品类型名称
     */
    private String productTypeName;

    /**
     * 产品分类名称
     */
    private String productCategoryName;

    /**
     * 产品品牌
     */
    private String productBrandName;

    /**
     * 产品型号
     */
    private String productModelName;

    /**
     * 适配机床
     */
    private String deviceName;

    /**
     * 包装单价
     */
    private BigDecimal price;

    /**
     * 基础单价
     */
    private BigDecimal basePrice;

    /**
     * 市场价
     */
    private BigDecimal marketPrice;

    /**
     * 数量
     */
    private Integer quantity;

    /**
     * 总价
     */
    private BigDecimal total;

    /**
     * 最大上货数
     */
    private Integer quantityMax;

    /**
     * 单位
     */
    private String unitName;


    /**
     * 检查结果id
     */
    private Long checkedResultId;

    /**
     * 仓库名字
     */
    private String workshopName;

    /**
     * 楼层
     */
    private String floor;


    /**
     * 刀柜名称
     */
    private String cabName;

    /**
     * 车间位置
     */
    private String workshopLocation;

    /**
     * 企业名称
     */
    private String enterpriseName;

    /**
     * 编码
     */
    private String code;

    /**
     * 订单提交时间
     */
    private LocalDateTime preparationTime;

    /**
     * 出货时间
     */
    private LocalDateTime departureTime;

    /**
     * 订单状态
     */
    private Integer statusDelivery;

    /**
     * 领取操作员
     */
    private String signer;

    private String skuSpecOld;

    private String skuCodeOld;

    /**
     * 企业编码
     */
    private String enterpriseCode;

    /**
     * 主柜编码
     */
    private String mainCabCode;

    private String processName;
    private String deviceCode;
    private Long storageInventoryInoutDetailId;

    private Integer quantitySingleCabCurrent;

    private Integer quantitySingleCabAfter;

    private Integer quantityCabCurrent;

    private Integer quantityCabAfter;


    private Integer settingTime;


    private Integer remainingTime;



    /**
     * 寿命单位  1：小时/ 2：次数
     */
    private CellInventoryInoutDetail.LifeUnit lifeUnit;

    private Integer quantityPack;

    private Integer quantityPackUnit;


    private Long packId;

    private String packName;

    private Integer quantityPackCurrent;

    private Integer quantityPackAfter;


    private Integer quantityPackSingleCabCurrent;

    private Integer quantityPackSingleCabAfter;


    private Integer quantityPackCabCurrent;

    private Integer quantityPackCabAfter;

    private BigDecimal receiveAmount;

    /**
     * 基础单位
     */
    private String basicsUnitName;

}
